<?php

namespace app\wechat\controller;

use think\Controller;

class Base extends Controller
{
    //
    public function initialize()
    {
        if (!session('?user.id')) {
            $request     = request();
            $request_url = $request->url(true);
            session('url', $request_url);
            $login = new Oauth();
            $login->login();
        }
    }
}
